package own.stu.jobgib.playown.dp.adpater.refactor_1;

import lombok.AllArgsConstructor;
import lombok.Data;
import own.stu.jobgib.playown.dp.adpater.raw.CSensitiveWordsFilter;

@Data
@AllArgsConstructor
public class CAdapter implements SensitiveFilter {

    private CSensitiveWordsFilter filter;

    @Override
    public String filter(String text) {
        return filter.filter(text, "****");
    }
}
